package com.lagou.subjectthree;

import java.math.BigDecimal;

/**
 * 手机卡类
 */
public class PhoneCard {
    /**
     * 卡类型
     */
    private CarTypeEnum CardType;
    /**
     * 卡号
     */
    private int CardNum;
    /**
     * 用户名
     */
    private String UserName;
    /**
     * 密码
     */
    private String PassWord;
    /**
     * 余额
     */
    private BigDecimal Balance;
    /**
     * 通话时长（分钟）
     */
    private float CallTime;
    /**
     * 上网流量(MB)
     */
    private float InternetData;

    /**
     * 构造函数
     *
     * @param cardType
     * @param cardNum
     * @param userName
     * @param passWord
     * @param balance
     * @param callTime
     * @param internetData
     */
    public PhoneCard(CarTypeEnum cardType, int cardNum, String userName, String passWord, BigDecimal balance, float callTime, float internetData) {
        setCardType(cardType);
        setCardNum(cardNum);
        setUserName(userName);
        setPassWord(passWord);
        setBalance(balance);
        setCallTime(callTime);
        setInternetData(internetData);
    }

    /**
     * 输出卡的基本信息
     */
    public void ShowPhoneCardInfo() {
        System.out.println("卡号：" + getCardNum() + "用户名：" + getUserName() + "余额：" + getBalance());
    }


    /**
     * 自定义成员方法实现特征的获取和修改
     *
     * @return
     */
    public CarTypeEnum getCardType() {
        return CardType;
    }

    public void setCardType(CarTypeEnum cardType) {
        CardType = cardType;
    }

    public int getCardNum() {
        return CardNum;
    }

    public void setCardNum(int cardNum) {
        CardNum = cardNum;
    }

    public String getUserName() {
        return UserName;
    }

    public void setUserName(String userName) {
        UserName = userName;
    }

    public String getPassWord() {
        return PassWord;
    }

    public void setPassWord(String passWord) {
        PassWord = passWord;
    }

    public BigDecimal getBalance() {
        return Balance;
    }

    public void setBalance(BigDecimal balance) {
        Balance = balance;
    }

    public float getCallTime() {
        return CallTime;
    }

    public void setCallTime(float callTime) {
        CallTime = callTime;
    }

    public float getInternetData() {
        return InternetData;
    }

    public void setInternetData(float internetData) {
        InternetData = internetData;
    }

}
